<template>  
    <div class="my-page">  
      <h2>My Page</h2>  
      <p>Welcome to your My Page!</p>  
      <button @click="logout">Logout</button>  
    </div>  
  </template>  
    
  <script>  
  export default {  
    methods: {  
      logout() {  
        localStorage.removeItem('authenticated');  
        this.$router.push({ name: 'Home' });  
      }  
    }  
  };  
  </script>  
    
  <style scoped>  
  .my-page {  
    max-width: 600px;  
    margin: 0 auto;  
  }  
  </style>